#include "dominion.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

#define NOISY_TEST 1

void testShuffle(){
	int player;
	int seed = 1;
	int numPlayer = 2;
	//int player = 1;
	struct gameState state;
	int cur;
	int k[10] = {adventurer, council_room, feast, gardens, mine,
					remodel, smithy, village, baron, great_hall};

	int r = initializeGame(numPlayer, k, seed, &state);

	if(r == -1){
		printf("Failure to initlaize game.\n");
		return;
	}

	for(player = 0; player < numPlayer; player++){
		state.whoseTurn = player; // ensuring the player has been updated
		cur = shuffle(player, &state);
		if(cur == -1){
			printf("Invalid Deck Count.  Expected: 0. Actual: %d\n", cur);
		}
	}
}

int main(){
	testShuffle();
	printf("Finished testShuffle()\n");
	return 0;
}
